package com.rm.zeyou.controller;

import com.rm.zeyou.response.ApiRestResponse;
import com.rm.zeyou.service.ChannelMerchantsConfigService;
import com.rm.zeyou.vo.response.ChannelMerchantsConfigResponseVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 渠道类目配置表 前端控制器
 * </p>
 *
 * @author YanYang
 * @since 2025-03-22 14:17:47
 */
@Api(tags = "渠道类目相关")
@RestController
@RequestMapping("/api/channelMerchantsConfig")
public class ChannelMerchantsConfigController {
    @Resource
    private ChannelMerchantsConfigService channelMerchantsConfigService;

    @ApiOperation(value = "渠道商类目")
    @GetMapping("selectChannelMerchantsConfigList")
    public ApiRestResponse<List<ChannelMerchantsConfigResponseVo>> selectChannelMerchantsConfigList() {
        return channelMerchantsConfigService.selectChannelMerchantsConfigList();
    }

}
